CancelUpdate Method (Remote Data)

       

Cancels any pending updates to an rdoResultset object.

Syntax

object.CancelUpdate

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Remarks

The CancelUpdate method flushes the copy buffer and cancels any pending updates from an Edit or AddNew operation. For example, if a user invokes the Edit or AddNew method and hasn’t yet invoked the Update method, CancelUpdate cancels any changes made after Edit or AddNew was invoked. Any information in the copy buffer is lost — that is, any changes made to the row after the Edit or AddNew methods are invoked, are flushed.

Use the EditMode property to determine if there is a pending operation that can be canceled.

If the CancelUpdate method is used before using the Edit or AddNew methods or when the EditMode property is set to rdEditNone, the method is ignored.

Note   Using the CancelUpdate method has the same effect as moving to another row without using the Update method, except that the current row doesn’t change, and various properties, such as BOF and EOF, aren’t updated.